<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="../common/commonLabel.jsp"%>
<%@ include file="../common/commonJS.jsp"%>
<%@ page import="org.apache.commons.lang.StringUtils,com.hz.framework.util.DateUtil"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><span class="style3">添加关系人</span></title>
  </head>
  <style type="text/css">
<!--
.STYLE3 {font-size: 12px; font-weight: bold; }
-->
</style>
<link href="${pageContext.request.contextPath}/parts/CSS/base.css" rel="stylesheet" type="text/css"/>
<link href="<%=path %>/css/main.css" rel="stylesheet" type="text/css" />
  <script language="javascript" >
  	function dosubmit() { 
  	__setServerTime('<%=DateUtil.longtime() %>');
      var birthday = __get("birthday").value;
      if(!__isEmpty(birthday)){
        if(__compareTimeWithNow(birthday,">")){
            _alert("生日不能在当前日期之后");
            return;
        }
      }
  		if(check()) {	
	 	  	form1.submit();
	  	  	window.parent.location.reload(true);
	  		doclose();		  	  		
  		}
  	}
  </script>
  <body style="overflow: hidden;">
  <s:form action="AddRelation.action" method="post" namespace="/" name="form1" >
  <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: white;">
  	<tr>
    <td height="30" background="${pageContext.request.contextPath}/parts/images/tab_05.gif">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="${pageContext.request.contextPath}/parts/images/tab_03.gif" width="12" height="30" /></td>
        <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
           <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="${pageContext.request.contextPath}/parts/images/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"> 联系人：<span id="domEmpFilterDesc" style='color:red'><%=request.getParameter("pername")%></span></td>
              </tr>
            </table></td>
            <td width="54%" align="right">
			<div align="right" style="overflow: auto;">
			<INPUT class="btn2" type="button" value="保  存" onclick="return dosubmit()" style='cursor:hand'>&nbsp;&nbsp;
			<INPUT class="btn2" type="button" value="关闭窗口" onclick="parent.__close()" style='cursor:hand'>&nbsp;&nbsp;
			</div>
			</td>
          </tr>
        </table></td>
         <td width="16"><img src="${pageContext.request.contextPath}/parts/images/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table>
    </td>
    </tr>
      <tr>
    <td><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      		<tr>
        <td width="8" background="${pageContext.request.contextPath}/parts/images/tab_12.gif">&nbsp;</td>
        <td align="center" valign="top">&nbsp;&nbsp;
<table width=100% class="MFBg"><tr><td class=formTableContainer>
<table width=100% cellspacing=0 cellspacing=0 style='table-layout:fixed'>
<tr><td valign=top align="center">
    <div style='width:100%;border:0px solid #cccccc'>
    <input type="hidden" name="relationship.pid" value="<%=request.getParameter("pid")%>">
    	<table width=95% cellpadding=3 class="tab">
    	<COL ALIGN="right" width="17%">
		<COL ALIGN="left" width="33%">
		<COL ALIGN="right" width="17%">
		<COL ALIGN="left" width="33%">
    		<tr height="27"> 
    			<th>关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;系</th><td><input type="text" name="relationship.relation" id="relationship" check="checkBlank" title="关系" class="ip_text notnull" /></td>&nbsp;&nbsp;&nbsp;
    			<th>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</th><td><input type="text" name="relationship.rname" id="relationship" check="checkBlank" title="姓名" class="ip_text notnull"/></td>  			
    		</tr>
    		<tr height="27">
    			<th>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</th><td><select name="relationship.sex"><option value="男" >男</option><option value="女" >女</option></select></td>
    			 <th>联系电话：</th><td><input type="text" name="relationship.phone" id="relationship" check="checkBlank,checkInt" title="联系电话" class="ip_text notnull" maxlength="12"></td>  			
    		</tr>
    		  <tr height="27">
    			<th>工作单位：</th><td><input type="text" name="relationship.workplace" id="relationship" class="ip_text" title="工作单位"/></td>
    			<th>职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：</th><td><input type="text" name="relationship.job" id="relationship" class="ip_text" title="职务"></td>		
    		</tr>
    		<tr height="27">
    		    <th>出生日期：</th><td><input type="text" name="relationship.birthday" id="birthday"  title="出生日期" class='ip_text Wdate' onfocus="WdatePicker({dateFmt:'yyyy年MM月dd日',readOnly:true})"/></td>			   		 
    		</tr>
    	</table>
    </div>
</td></tr></table>
</td></tr> 
  <tr align="center"><td><FONT color="red"><span id="result1"></span></FONT></td></tr>	
  </table></td>
        <td width="8" background="${pageContext.request.contextPath}/parts/images/tab_15.gif"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="../images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="../images/tab_18.gif" width="12" height="35" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="16"><img src="../images/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
 </tr>
    	</table>
    </s:form>
  </body>
</html>
